package com.ruoyi.zsix.mapper.orgmanagementMapper;

import com.ruoyi.common.core.domain.zsixOrg.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserEntityMapper {
    /**
     获取人员列表
     */
    List<UserEntity> getUserEntityList(@Param("name") String name, @Param("username") String username,
                                       @Param("departid") String departid);
    /**
     获取人员信息
     */
    UserEntity getUserEntityInfo(String userName);
    /**
     根据部门编号查找人员
     */
    List<UserEntity> getUserByDepartId(@Param("departid")Long departid);
    /**
     * 根据岗位编号查找人员
     * @param positionId
     * @return
     */
    List<UserEntity> getUserByPositionId(@Param("positionId")String positionId);
    /**
     * 根据角色编号查找人员
     * @param roleId
     * @return
     */
    List<UserEntity> getUserByRoleId(@Param("roleId")String roleId);
}
